import NProgress from 'nprogress'
import 'nprogress/nprogress.css'

const defaultOptions = { showSpinner: false }

export const setOptions = (progressOptions = {}) => {
  const options = { ...defaultOptions, ...progressOptions }
  NProgress.configure(options)
}
